package com.lanyun.aicorrectassistant.basic.service.impl;

import com.lanyun.aicorrectassistant.basic.dao.AssignmentTemplatesDao;
import com.lanyun.aicorrectassistant.basic.entity.AssignmentTemplates;
import com.lanyun.aicorrectassistant.basic.service.AssignmentTemplatesService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 作业模板表(AssignmentTemplates)服务实现
 *
 * @author makejava
 * @since 2025-05-12 01:52:14
 */
@Service
public class AssignmentTemplatesServiceImpl implements AssignmentTemplatesService {
    
    @Resource
    private AssignmentTemplatesDao assignmentTemplatesDao;

    @Override
    public AssignmentTemplates queryById(Long id) {
        return assignmentTemplatesDao.queryById(id);
    }

    @Override
    public AssignmentTemplates queryByCondition(AssignmentTemplates condition) {
        return assignmentTemplatesDao.queryByCondition(condition);
    }

    @Override
    public List<AssignmentTemplates> queryAllByCondition(AssignmentTemplates condition) {
        return assignmentTemplatesDao.queryAllByCondition(condition);
    }

    @Override
    public List<AssignmentTemplates> page(AssignmentTemplates condition, int page, int pageSize) {
        return assignmentTemplatesDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(AssignmentTemplates entity) {
        return assignmentTemplatesDao.insert(entity);
    }

    @Override
    public int update(AssignmentTemplates entity) {
        return assignmentTemplatesDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return assignmentTemplatesDao.deleteById(id);
    }

    @Override
    public Long count(AssignmentTemplates condition) {
        return assignmentTemplatesDao.count(condition);
    }
}
